package com.zhx.common.common.event;

import com.zhx.common.chat.domain.entity.GroupMember;
import com.zhx.common.chat.domain.entity.RoomGroup;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.util.List;

@Getter
public class GroupMemberAddEvent extends ApplicationEvent {
    private final RoomGroup roomGroup;
    // 保存的群成员
    private final List<GroupMember> groupMembers;
    private final Long uid;

    public GroupMemberAddEvent(Object source,RoomGroup roomGroup, List<GroupMember> groupMembers, Long uid) {
        super(source);
        this.roomGroup = roomGroup;
        this.groupMembers = groupMembers;
        this.uid = uid;
    }
}
